package org.alex.samples.dao;

import java.util.Iterator;
import java.util.List;

import org.alex.samples.model.ExamTestType;
import org.alex.samples.model.User;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
public class ITestTypeDaoImpl extends BaseHibernateDAO<ExamTestType> implements ITestTypeDao{

	public List<ExamTestType> findAllTestType() throws Exception {
		return loadAll();
	}

	public ExamTestType getExamTestTypeById(Integer id) throws Exception {
		return get(id);
	}

	public void createExamTestType(ExamTestType examTestType) throws Exception {
		save(examTestType);
	}

	public void editExamTestType(ExamTestType examTestType) throws Exception {
		update(examTestType);
	}

	public void deletetExamTestType(Integer id) throws Exception {
		deleteByKey(id);
	}

	@Override
	public Iterator iterate(String queryString, Object[] values) {
		return null;
	}

	@Override
	public void flush() {
		flush();

	}
	
}
